import config from "@/config"
import http from "@/utils/request"


export default {
	salary: {
		add: {
			url: `${config.API_URL}/salary_theme`,
			name: "工资单创建",
			post: async function (data) {
				return await http.post(this.url, data);
			}
		},
		list: {
			url: `${config.API_URL}/salary_theme`,
			name: "工资单列表",
			get: async function (data) {
				return await http.get(this.url, data);
			}
		},
		del: {
			url: `${config.API_URL}/salary_theme`,
			name: "工资单列表",
			delete: async function (data) {
				return await http.delete(this.url, data);
			}
		}
	},
	salaryDetail: {
		// add: {
		// 	url: `${config.API_URL}/salary_theme`,
		// 	name: "工资单创建",
		// 	post: async function(data){
		// 		return await http.post(this.url,data);
		// 	}
		// },
		list: {
			url: `${config.API_URL}/salary_college`,
			name: "工资单详情",
			get: async function (data) {
				return await http.get(this.url, data);
			}
		},
		update: {
			url: `${config.API_URL}/salary_college`,
			name: "工资单详情",
			put: async function (data) {
				return await http.put(this.url, data);
			}
		}

	}
}